#include "StdAfx.h"
#include "Mutex.h"


CMyMutex::CMyMutex()
{
	::InitializeCriticalSection(&m_cs); 
}

CMyMutex::~CMyMutex()
{
	::DeleteCriticalSection(&m_cs);
}

void CMyMutex::Lock()
{
	::EnterCriticalSection(&m_cs); 
}

void CMyMutex::Unlock()
{ 
	::LeaveCriticalSection(&m_cs); 
}
